home *** CD-ROM | disk | FTP | other *** search
- @echo off
- REM *****************************************************
- REM *** Int16.bat - Show results of calls to keyboard ***
- REM *** ver.1 interrupt 16H ***
- REM *****************************************************
-
- CEnvi.exe %0.bat
- GOTO CENVI_EXIT
-
- printf("Press Keys to see codes returns by interrupt 16h (until <ESC>)\n");
-
- #define ESCAPE_CODE 0x011B
-
- do {
- inreg.ah = 0;
- interrupt(0x16,inreg,outreg);
- printf("%04X\n",outreg.ax);
- } while( outreg.ax != ESCAPE_CODE );
-
- :CENVI_EXIT